<!DOCTYPE html>
<<<<<<< HEAD
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>

<script>
    try {
        console.log(aa)
    }catch (e){
        console.error('catch')
        console.log(e.stack)
    }
</script>

=======
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title></title>


</head>
<body>


</body>

<script>

    function doAction(action) {
        var actions = {
            'aaa': function () {
                return 'aaa';
            },
            'bbb': function () {
                return 'bbb';
            },
            'ccc': function () {
                return 'ccc';
            }
        }
        return actions[action]();
    }
    console.log(doAction('ccc'));

</script>


>>>>>>> 7d0b78833d175e19bc0583894ea07fc7d6618369
</html>